/*
 * Copyright (c) 2025 CAX Conversion Project
 */
package com.comac.ins.isfd.domain.bo;

import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import com.comac.ins.isfd.domain.IsfdDatabaseModelingConfig;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 数据库建模配置业务对象 isfd_database_modeling_config
 *
 * @author Lion Li
 * @date 2024-11-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IsfdDatabaseModelingConfig.class, reverseConvertGenerate = false)
public class IsfdDatabaseModelingConfigFieldBo extends BaseEntity {

    /**
     * 字段名称
     */
    @NotBlank(message = "字段名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fieldName;

    /**
     * 字段描述
     */
    private String fieldDescription;

    /**
     * 字段类型
     */
    @NotBlank(message = "字段类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fieldType;

    /**
     * 字段结构
     */
    private String fieldStructure;

    /**
     * 字段长度
     */
    private Long fieldLength;

    /**
     * 默认值
     */
    private String defaultValue;

    /**
     * 是否运行为空
     */
    private Integer isNullable;
}
